// 回车搜索博文
function onKeyDown(event) {
    var e = event || window.event || arguments.callee.caller.arguments[0];
    if (e && e.keyCode == 13) {
        var content = $.trim($(".searchContent").val());
        if (content == null || content.length != 0) {
            window.location.href = "/article/searchArticle?content=" + content;
        } else {
            alert("搜索条件不能为空呦");
        }
    }
}

// 按钮搜索博文
$(".searchBtn").on("click", function () {
    var content = $.trim($(".searchContent").val());
    if (content == null || content.length != 0) {
        window.location.href = "/article/searchArticle?content=" + content;
    } else {
        alert("搜索条件不能为空呦");
    }
});